package com.hjs.Executors;

public class ThreadPoolDemo implements Runnable {

    private Integer index;
    public ThreadPoolDemo(Integer index){
        this.index=index;
    }

    @Override
    public void run() {
        try {
            System.out.println("开始处理线程");
            Thread.sleep(100);
            System.out.println("当前线程的名称为"+this.toString());
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
